<template>
  <div>
    <div class="mb20 lh1">文本内容</div>
    <div class="ks-row-middle mb20 lh1">
      <el-input
        type="textarea"
        :disabled="!block.isEditable()"
        v-model="text"
        style="width: 100%"
        :autosize="{ minRows: 3}"
        placeholder="请输入文本内容"
      />
    </div>
  </div>
</template>

<script>

import { mapGetters } from 'vuex'
import {getAllComponentList} from '../../../utils/component'
export default {
  name: 'TextContent',
  props: {
    eventItem: {}, // 需要逻辑编排的对象
    componentItem: {},
    block: {},
    workspace: {}
  },
  components: { },
  computed: {
    text: {
      get() {
        const text = this.block?.getFieldValue('TEXT')
        return text || ''
      },
      set(val) {
        this.block.setFieldValue(val, 'TEXT')
      }
    }
  },
  data () {
    return {
    }
  },
  watch: {

  },
  methods: {

  }
}
</script>

<style scoped>

</style>
